home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
NEW_TECH
/
RCSDOC.ZIP
/
CO.TXT
< prev
next >
Wrap
Text File
|
1993-08-09
|
20KB
|
391 lines
CO(1) Unix Programmer's Manual CO(1)
NNNAAAMMMEEE
co - check out RCS revisions
SSSYYYNNNOOOPPPSSSIIISSS
cccooo [_o_p_t_i_o_n_s] _f_i_l_e ...
DDDEEESSSCCCRRRIIIPPPTTTIIIOOONNN
cccooo retrieves a revision from each RCS file and stores it into the
corresponding working file. Each file name ending in ,,,vvv is taken to be
an RCS file; all other files are assumed to be working files. If only a
working file is given, cccooo tries to find the corresponding RCS file in the
directory ...///RRRCCCSSS and then in the current directory. For more details, see
FILE NAMING below.
Revisions of an RCS file may be checked out locked or unlocked. Locking
a revision prevents overlapping updates. A revision checked out for
reading or processing (e.g., compiling) need not be locked. A revision
checked out for editing and later checkin must normally be locked.
Checkout with locking fails if the revision to be checked out is
currently locked by another user. (A lock may be broken with rrrcccsss(1).)\
Checkout with locking also requires the caller to be on the access list
of the RCS file, unless he is the owner of the file or the superuser, or
the access list is empty. Checkout without locking is not subject to
accesslist restrictions, and is not affected by the presence of locks.
A revision is selected by options for revision or branch number, checkin
date/time, author, or state. When the selection options are applied in
combination, cccooo retrieves the latest revision that satisfies all of them.
If none of the selection options is specified, cccooo retrieves the latest
revision on the default branch (normally the trunk, see the ---bbb option of
rrrcccsss(1)). A revision or branch number may be attached to any of the
options ---fff, ---III, ---lll, ---ppp, ---qqq, ---rrr, or ---uuu. The options ---ddd (date), ---sss
(state), and ---www (author) retrieve from a single branch, the _s_e_l_e_c_t_e_d
branch, which is either specified by one of ---fff,,, ..., ---uuu, or the default
branch.
A cccooo command applied to an RCS file with no revisions creates a zero-
length working file. cccooo always performs keyword substitution (see
below).
OOOPPPTTTIIIOOONNNSSS
---rrr[rev]]]
retrieves the latest revision whose number is less than or equal to
_r_e_v. If _r_e_v indicates a branch rather than a revision, the latest
revision on that branch is retrieved. If _r_e_v is omitted, the latest
revision on the default branch (see the ---bbb option of rrrcccsss(1)) is
retrieved. A revision is composed of one or more numeric or
symbolic fields separated by periods. The numeric equivalent of a
symbolic field is specified with the ---nnn option of the commands ccciii(1)
and rrrcccsss(1).
---lll[rev]]]
same as ---rrr, except that it also locks the retrieved revision for the
caller.
\*(Dt 1
CO(1) Unix Programmer's Manual CO(1)
---uuu[rev]]]
same as ---rrr, except that it unlocks the retrieved revision if it was
locked by the caller. If _r_e_v is omitted, ---uuu retrieves the latest
revision locked by the caller; if no such lock exists, it retrieves
the latest revision on the default branch.
---fff[rev]]]
forces the overwriting of the working file; useful in connection
with ---qqq. See also FILE MODES below.
---kkkkkkvvv Generate keyword strings using the default form, e.g. $$$RRReeevvviiisssiiiooonnn::: 555...444
$$$ for the RRReeevvviiisssiiiooonnn keyword. A locker's name is inserted in the
value of the HHHeeeaaadddeeerrr, IIIddd, and LLLoooccckkkeeerrr keyword strings only as a file
is being locked, i.e. by ccciii\\\ ---lll and cccooo\\\ ---lll. This is the default.
---kkkkkkvvvlll
Like ---kkkkkkvvv, except that a locker's name is always inserted if the
given revision is currently locked.
---kkkkkk Generate only keyword names in keyword strings; omit their values.
See KEYWORD SUBSTITUTION below. For example, for the RRReeevvviiisssiiiooonnn
keyword, generate the string $$$RRReeevvviiisssiiiooonnn$$$ instead of $$$RRReeevvviiisssiiiooonnn::: 555...444 $$$.
This option is useful to ignore differences due to keyword
substitution when comparing different revisions of a file.
---kkkooo Generate the old keyword string, present in the working file just
before it was checked in. For example, for the RRReeevvviiisssiiiooonnn keyword,
generate the string $$$RRReeevvviiisssiiiooonnn::: 111...111 $$$ instead of $$$RRReeevvviiisssiiiooonnn::: 555...444 $$$ if
that is how the string appeared when the file was checked in. This
can be useful for binary file formats that cannot tolerate any
changes to substrings that happen to take the form of keyword
strings.
---kkkvvv Generate only keyword values for keyword strings. For example, for
the RRReeevvviiisssiiiooonnn keyword, generate the string 555...444 instead of $$$RRReeevvviiisssiiiooonnn:::
555...444 $$$. This can help generate files in programming languages where
it is hard to strip keyword delimiters like $$$RRReeevvviiisssiiiooonnn:::\\\ $$$ from a
string. However, further keyword substitution cannot be performed
once the keyword names are removed, so this option should be used
with care. Because of this danger of losing keywords, this option
cannot be combined with ---lll, and the owner write permission of the
working file is turned off; to edit the file later, check it out
again without ---kkkvvv.
---ppp[rev]]]
prints the retrieved revision on the standard output rather than
storing it in the working file. This option is useful when cccooo is
part of a pipe.
---qqq[rev]]]
quiet mode; diagnostics are not printed.
---III[rev]]]
interactive mode; the user is prompted and questioned even if the
standard input is not a terminal.
\*(Dt 2
CO(1) Unix Programmer's Manual CO(1)
---ddd_d_a_t_e
retrieves the latest revision on the selected branch whose checkin
date/time is less than or equal to _d_a_t_e. The date and time may be
given in free format. The time zone LLLTTT stands for local time; other
common time zone names are understood. For example, the following
_d_a_t_es are equivalent if local time is January 11, 1990, 8pm Pacific
Standard Time (eight hours west of GMT):
8:00 pm lt
4: